package ${servicePackage}.impl;

import ${daoPackage}.${daoName};
import ${entityPackage}.${entityName};
import ${servicePackage}.${serviceName};
import ${tableInfo.primaryKey.javaType.name};
import org.ligson.fwc.core.dao.BaseDao;
import org.ligson.fwc.core.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ${((tableInfo.remark)?length>0)?string(tableInfo.remark,tableInfo.tableName)}服务实现
 */
@Service
public class ${serviceName}Impl extends BaseServiceImpl<${entityName}, ${tableInfo.primaryKey.javaType.simpleName}> implements ${serviceName} {
    @Autowired
    private ${daoName} ${daoName?substring(0,1)?lower_case}${daoName?substring(1)};

    @Override
    public BaseDao<${entityName}, ${tableInfo.primaryKey.javaType.simpleName}> getDao() {
        return ${daoName?substring(0,1)?lower_case}${daoName?substring(1)};
    }
${"    "}//<!--用户自定义代码开始-->
${userCustomCode}
${"    "}//<!--用户自定义代码结束-->
}
